package com.cxyw.qqrobot.domain;


import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.time.LocalDateTime;

@Data
@Entity
@NoArgsConstructor
public class NiuZi {
    @Id
    @TableId(value = "qq")
    public Long qq;


    @Column(name = "length")
    public Double length;

    @Column(name="create_time")
    public LocalDateTime createTime;

    public NiuZi(Long qqId, double length, LocalDateTime now) {
        this.qq=qqId;
        this.length=length;
        this.createTime=now;
    }
}
